package com.amt.util;

import java.io.UnsupportedEncodingException;

/**
 * @Title: SystemConstantUtil.java
 * @Package com.amt.util
 * @Description: TODO(系统常量工具类)
 * @author 江伟
 * @date 2021年3月月26日 上午10:39:42 Copyright (c) ©1994-2021 Scjydz.com All Rights
 *       Reserved.
 */
public class SystemConstantUtil {

	/**
	 * 四川省卫健委集成环境
	 */
	public static final String TEST_DOMAIN_NAME = "https://testscwjwxx.51trust.com";
	/**
	 * 四川省卫健委正式环境
	 */
	public static final String FORMAL_DOMAIN_NAME = "https://scwjwxx.51trust.com";

	/**
	 * 四川省卫健委获取token接口
	 */
	public static final String ROUTE_GET_TOKEN = "/wjw/third/oauth/getAccessToken";

	/**
	 * 四川省卫健委网络咨询服务数据上传路径
	 */
	public static final String ROUTE_UPLOAD_CONSULT = "/wjw/upload/uploadConsult";

	/**
	 * 四川省卫健委网络复诊服务数据上传路径
	 */
	public static final String ROUTE_UPLOAD_FURTHERCONSULT = "/wjw/upload/uploadFurtherConsult";

	/**
	 * 四川省卫健委电子处方数据上传路径
	 */
	public static final String ROUTE_UPLOAD_RECIPE = "/wjw/upload/uploadRecipe";

	/**
	 * 四川省卫健委预约服务数据上传路径
	 */
	public static final String ROUTE_UPLOAD_REGISTER = "/wjw/upload/uploadRegister";

	/**
	 * 四川省卫健委移动支付数据上传路径
	 */
	public static final String ROUTE_UPLOAD_MOBILEPAY = "/wjw/upload/uploadMobilePay";

	/**
	 * 四川省卫健委服务过程查询地址数据上传路径
	 */
	public static final String ROUTE_UPLOAD_SERVICEPROCESS = "/wjw/upload/uploadServiceProcess";

	/***
	 * @Description;  AES标识
	*/
	public static final String AES_FLAG = "AES_KEY";

	/**
	 * 操作员id
	 */
	public static final String USERID = "W002";


	/**
	 * 前端登录公钥
	 */
	public static final String CLIENT_KEY = "MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCMSEvel8grooi5JG+CrsZRh64CREqE96g1zh1UxmeYB6a8LxUKYbR5Vtc/MluyxdoAHQVJMrqyXKNf+P8vaMsDPUTGamzPdzy9NRma81eVaAO5r3c0BOc0ajtka2YZ9VX4XyI/lzimglFsgHp4IXTKCLPgE9fRUEKI2Z1ZP/R24wIDAQAB";

	public static String USERCARD = "84A56F95B6872AAB02EB9AE5939D17DED14AA5D9E467DB87E611F141F9A8B1C5";// 查询就诊卡

	public static String ZERO = "0";// 特殊用户0元优惠



	/******************* 订单状态常量 ****************/
	/**
	 * 无效
	 */
	public static final int ORDER_STATUS_INVALID = 0;
	/**
	 * 待支付
	 */
	public static final int ORDER_STATUS_UNPAID = 1;
	/**
	 * 异常支付
	 */
	public static final int ORDER_STATUS_UNUSUAL = 3;
	/**
	 * 关闭
	 */
	public static final int ORDER_STATUS_CLOSE = 7;
	/**
	 * 已退款
	 */
	public static final int ORDER_STATUS_REFUND = 8;
	/**
	 *  退款异常
	 */
	public static final int ORDER_STATUS_REFUNDFAILURE = 81;
	/**
	 * 已完成
	 */
	public static final int ORDER_STATUS_FINISH = 9;
	/**
	 * 超时
	 */
	public static final int ORDER_STATUS_OVERTIME = 11;
	
	public static final String ORDER_BANK = "支付宝";  // 挂号支付
	
	public static String BANK="ICBC"; //支付宝
	public static String NAME="南充市高坪区人民医院"; //支付宝

	public static String PAYWAY="支付宝"; //支付方式
	public static String ORGAPPID="1GK7DGBQG0M675430B0A000012993C44"; //支付方式
	public static String INSCODE="NATHSA"; //医保电子凭证机构编号
	public static String INSUCODE="511300"; //医院所在地参保code
	public static String CALLURL="1EIVGC6FV00175430B0A0000B3"; //授权回调地址
	public static String ORGCHNLCRTFCODE="BqK1kMStlhVDgN2uHf4EsP9BQzovPtfTZGwRsyhqMMa9HK6ZuEZMDQtAyPWOkPfq"; //机构渠道认证编码
	public static String ORGCODE="H51130200934"; //定点医药机构代码
	public static String PU="84F54AB9B04E9A9B8ED5782AF18F13C4EE84EA22DD83BF28701EA2FC726E849689BFC5A4675C58AC405DA78CBE635D2728F867EED86191E28B715FA1C1A2E99E"; //定点医药机构代码
	public static String PR="DF1149080BAA206E2BDA387232678FB78D1E3E3EA56E6369CB73040B800306FF"; //定点医药机构代码

	public static String MERCHANTID="20885410981302300156"; //入账商户号
	public static String YBMERCHANTID="2315532109022507851"; //入账商户号
	public static String INSURANCECODE="30000"; //医保结算地城市编码
	public static String DISECODG="00000.001"; //医保结算地城市编码
	public static String DISENAME="自购零药(门诊)"; //医保结算地城市编码

	
	/**
	 * 当日报告接口统计数量
	 */
	public static Long REPORT_NUMBER = 0L;
	
	
	/**
	 * 当日智能导诊接口统计数量
	 */
	public static Long GUIDANCE_NUMBER = 0L;

	/**
	 * 接口返回成功状态
	 */
	public static final int RESULT_STATUS_SUCCESS = 200;
	/**
	 * 接口返回失败状态
	 */
	public static final int RESULT_STATUS_ERROR = 201;

	/**-------------------------kettle 相关提示信息------------------------------*/
	public static final String KETTLE_SUCCESS_MESSAGE = "转换成功";

	public static final String KETTLE_ERROR_FILE_TYPE_NO_EXIST = "不存在的类型";

	public static final String KETTLE_ERROR_FILE_NAME_ERROR = "ktr文件命名不规范";

	public static final String KETTLE_ERROR_FILE_TYPE_ERROR = "ktr文件类型错误";

	public static final String KETTLE_ERROR_INIT = "kettle初始化异常:";

	public static final String KETTLE_ERROR_TRANS_FAIL = "kettle转换失败";

	public static final String KETTLE_ERROR_TRANS_EXCEPTION = "kettle转换异常:";

	public static final String KETTLE_ERROR_TRANS_DATA_ERROR = "kettle转换数据异常";

	public static final String NO_DATA = "无数据";

	public static void main(String[] args) throws UnsupportedEncodingException {

			String s="血透门诊(东部)";
			String s1=new String(s.getBytes(),"gbk");

			System.out.println(s1);
		}
	}

